home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / menus / autopilo / auto.bat < prev    next >
DOS Batch File  |  1996-07-10  |  1KB  |  35 lines

  1. echo off
  2. REM Copyright (c) 1990-1992. Pilott Systems, Anchorage, AK.  All Rights Reserved.
  3. if '%1'=='/?' goto SYNTAX
  4. if '%1'=='?' goto SYNTAX
  5. if '%1'=='/1' CALL %APS% %APC%
  6. if '%1'=='/2' %COMSPEC%/C %APS% %APC%
  7. %0PILT /? MAIN /E:160 /R:%APC% /T"Main Menu" %1 %2 %3 %4 %5 %6 %7 %8 %9
  8. if errorlevel 255 %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  9. if '%1'=='/1' SHIFT
  10. if '%1'=='/2' SHIFT
  11. if errorlevel 252 %APP%\AUTO /2 %1 %2 %3 %4 %5 %6 %7 %8 %9
  12. if errorlevel 251 %APP%\AUTO /1 %1 %2 %3 %4 %5 %6 %7 %8 %9
  13. goto DONE
  14. :SYNTAX
  15. cls
  16. echo The AutoPilott Menu System
  17. echo.
  18. echo You may use the following parameters:
  19. echo.
  20. echo /? - Display this syntax screen
  21. echo /M - Maintenance Mode
  22. echo /U - Force User Mode
  23. echo /P"password" - Protect the user from exiting to DOS
  24. echo /T"title" - Set the title
  25. echo menuSet - Load an optional menu set
  26. echo.
  27. echo Use a space between AUTO and any parameters.
  28. echo.
  29. echo    Incorrect:  AUTO/M
  30. echo    Correct:    AUTO /M
  31. :DONE
  32. echo.
  33. echo Type AUTO and press ENTER to restart the AutoPilott Menu System.
  34. echo.
  35.